package com.ys.servers.points.service;

import com.ys.servers.common.data.ReturnData;
import com.ys.servers.common.data.UserType;
import com.ys.servers.points.data.UserPointsLog;
import io.vertx.codegen.annotations.Fluent;
import io.vertx.codegen.annotations.ProxyGen;
import io.vertx.core.AsyncResult;
import io.vertx.core.Handler;
import io.vertx.core.json.JsonObject;

import java.util.Map;

/**
 * Created by taotao on 2017/5/10.
 */

public interface UserPointsService {


    public UserPointsService addUserPoints(long userId, UserType userType, String pointTypeId, Handler<AsyncResult<ReturnData>> resultHandler);

    // public UserPointsService getUserPointsData(long userId, UserType userType, Handler<AsyncResult<UserPointsData>> resultHandler);


    public UserPointsService getRecentUserPointsLog(int days,int limit,int offset, long userId, UserType userType, Handler<AsyncResult<Map>> resultHandler);

    //  public UserPointsService checkPointsAdd(UserPointsData data, long pointTypeId, Handler<AsyncResult<UserPointsData>> resultHandler);

    public UserPointsService clearUserPoints(String userId, UserType userType, String pointTypeId, Handler<AsyncResult<JsonObject>> resultHandler);
}
